package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 答题提交记录
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-06-04
 */
@Getter
@Setter
@Schema(name = "Answer", description = "答题记录")
public class Answer implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "记录id")
    @TableId(value = "answer_id", type = IdType.AUTO)
    private Integer answerId;

    @Schema(description = "用户id")
    private Integer userId;

    @Schema(description = "是否通过")
    private Byte answerPass;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "销毁时间")
    private LocalDateTime destroyTime;

    @Schema(description = "假删除状态")
    private Byte tip;

    @Schema(description = "题目id")
    private Integer topicId;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Integer answerId) {
        this.answerId = answerId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Byte getAnswerPass() {
        return answerPass;
    }

    public void setAnswerPass(Byte answerPass) {
        this.answerPass = answerPass;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getDestroyTime() {
        return destroyTime;
    }

    public void setDestroyTime(LocalDateTime destroyTime) {
        this.destroyTime = destroyTime;
    }

    public Byte getTip() {
        return tip;
    }

    public void setTip(Byte tip) {
        this.tip = tip;
    }

    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }
}
